
        $('#btnSignIn').click(function(event){

        var name = $('#txtName').val();

        if(name.length == 0) 
        {
            alert('Empty name, please enter valid name');
        } else {
		
        	
        // 	
        $.ajax({
           type:"POST",
           url:"save.php",
           data:({name:name}),
           success:function(msg)
           {
               if(msg == 1)
                   {
                       $('#screen1').css("display","none");
                       $('#youName').append(""+name);
                       $('#screen2').css("display","block");
        
                   }
           }
        });
        

        
        }
        });


        


